package com.xdcplus.web.common.pojo.dto.wip;

import com.xdcplus.mp.domain.oracle.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 岗位任务(WipTask)表更新入参DTO类
 * 
 * @author Devin.sang
 * @since 2023-07-03 13:30:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "")
@SuppressWarnings("serial")
public class WipTaskDTO extends Base implements Serializable {
    private static final long serialVersionUID = -74331254270541266L;

    @NotBlank(message = "任务内容不能为空")
    @ApiModelProperty("任务内容")
    private String taskContent;

    @ApiModelProperty("图片，文件")
    private String taskFiles;

    @ApiModelProperty("标题")
    private String taskTitle;

    @NotNull(message = "岗位不能为空")
    @NotEmpty(message = "岗位不能为空")
    @ApiModelProperty("任务流转岗位id")
    private List<Long> positionIds;

    @ApiModelProperty("发布人")
    private String publisher;

    @NotBlank(message = "完成时间不能为空")
    @ApiModelProperty("完成时间")
    private String completeTime;

}
